package com.trkj.wiki.req;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Data
public class PageReq {
    @NotNull(message = "页码不能为空")
    private int page;

    @NotNull(message = "每页显示的条数不能为空")
    @Max(value = 1000,message = "每页最多能显示1000条数据")
    private int size;
}